<?php
require('lib/verify.php');
require('lib/has_char.php');
require('lib/is_approved.php');

$_category = "wardkp";
$_title = "Wishlist";
require('lib/head.php');

if($_GET["error"]!="") {
    boxRed("Error");
    echo $_GET["error"];
    boxBot();
 }

boxTop("wardkp: $_title");
#echo $character["character_id"];

echo "This is your wishlist:<br /><br />\n";


for($h=bid_max();$h>0;$h--) {
    echo "<b>".bid2text($h)."</b><br />\n";
    $sql = "select distinct wish_item 
                   from wm_wishes 
                   where wish_character='". $character["character_id"]."' and 
                         wish_system_id='".$system['system_id']."' and 
                         wish_level='$h'";
    $result = $db->query($sql);
    while($wishes = $db->fetch_assoc($result)) {
        $wish['item_id'] = $wishes['wish_item'];
        show_item($wish, $character, $db, "$war_http/wishlist.php" . $boss_id, $system);
        echo "<br/><br/>\n";
		
    }
    echo "<br /><br />\n";
 }

echo "<br /><br />\n";
echo "To mark new items, please <a href=\"loot.php\">browse loot</a>.\n";


boxBot();

require('lib/foot.php');
?>

